package com.four.reimbursemanage.common.util;

public class JudeStrLength {
    //11位长度的字符串
    public static boolean StrLength(String str){
        if (str.trim().length()==0 || str.trim().length() < 11 || str.trim().length() >11){
            return true;
        }else {
            return false;
        }

    }
    //13位长度的字符串

    public static boolean StrLength2(String str){
        if (str.trim().length()==0||str.trim().length() < 13 || str.trim().length() >13){
            return true;
        }else {
            return false;
        }

    }
    //18位长度的字符串
    public static boolean StrLength3(String str){
        if (str.trim().length()==0 || str.trim().length() < 18 || str.trim().length() >18){
            return true;
        }else{
            return false;
        }
    }

}
